<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/sys/cleanfile/";  //应用的地址名
String modifyActionName = path+request.getAttribute("REQUEST_PATH")+"?op=savejs";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>附件清理信息表添加或编辑</title>
<script type="text/javascript">
<!--
           $(function(){
               //初始化工作，因为远程载入该界面时无法通过在标签中进行设置相应的验证属性等信息，必须要在这里进行初始化
               //$('#modifyBtn').linkbutton();
               $('#vcTableName').validatebox({
                   required:'true',
                   missingMessage:'必须输入带附件的表名',
                   validType:'length[1,30]&specialHtmlChar'
               });
               $('#vcFileColumName').validatebox({
                   required:'true',
                   missingMessage:'必须输入附件列名',
                   validType:'length[1,30]&specialHtmlChar'
               });
	           //点击添加按钮操作
			   $('#addBtn').click(function(){
                  $('#editForm').submit();
	            });
	            //表单验证及提交处理操作
	           $('#editForm').form({
			        url:'<%=modifyActionName%>',
			        onSubmit: function(){
			           if($(this).form('validate')){
			                 $.util.showLoading();
			                 $('#operateWindow').window('close');
                            return true;
			             }else{
			                return false;
			             }
			        },
			        success:function(data){
			            $.util.removeLoading();
                        returnOptMsg(data);
			        }
				});
	            
           });
//-->
</script>
  </head>
  
  <body>
    <s:form action="editForm" method="post" theme="simple">
    <s:hidden id="vcId"  name="po.vcId"></s:hidden>
    <s:hidden id="vcDelFlag"  name="po.vcDelFlag" value="0"></s:hidden>
    <s:hidden id="dtLastClean"  name="po.dtLastClean"></s:hidden>
    <input type="hidden" id="vcUser"  name="po.vcUser"  value="<%=com.ce.sys.login.model.User.getUser().getVcId() %>"/>
	<table align="center" width="100%"  class="tb_add_th">
<tr><th>带附件的表名:</th><td><s:textfield id="vcTableName"  name="po.vcTableName" label="带附件的表名"></s:textfield><font color="red">*</font></td></tr>
<tr><th>附件列名:</th><td><s:textfield id="vcFileColumName"  name="po.vcFileColumName" label="附件列名"></s:textfield><font color="red">*</font></td></tr>
	</table>    
   </s:form>
  </body>
</html>

